<?php
namespace app\erp\validate;
use think\Validate;
class Artclassrule extends Validate{
    protected $rule = [
        'artclass_name' => 'require|unique:artclass,artclass_name^partner_id'
    ];
    
    protected $message = [
        'artclass_name.require' => '文章分类名称必须填写',
        'artclass_name.unique' => '文章分类名称已存在',
    ];
}